﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>后台管理登录</title>
<link href="../style/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
function CheckForm()
{
	if(document.login.username.value == "")
	{
		alert("请输入用户名！");
		document.login.username.focus();
		return false;
	}
	if(document.login.password.value == "")
	{
		alert("请输入密码！");
		document.login.password.focus();
		return false;
	}
	if (document.login.code.value == ""){
       alert ("请输入您的验证码！");
       document.login.code.focus();
       return false;
    }
	return true;
}
</script>
</head>

<body>
	<div>管理员登陆</div>
	<form name="login" method="POST" action="log/chklogin.asp" target="_parent" onSubmit="return CheckForm();">
	用户名：<input type="text" name="username" size="20"  />
	密　码：<input type="password" name="password" size="20" />
	验证码：<input type="text" name="code" size="8" ><img src='../include/GetCode.asp' alt='点击刷新验证码' height='10' style='cursor: pointer;' onClick="this.src='../include/GetCode.asp?t='+(new Date().getTime());" />
	<input type="submit" name="submit" value="确定" class="form-button">
	<input type="reset" name="submit2" value="重写" class="form-button">
	</form>
</body>
</html>